package com.learning.design.duck;

import com.learning.design.duck.fly.FlyRocketPowered;

public class MyTest {

    public static void main(String[] args){
        Duck mallard = new MallardDuck();
        mallard.performQuack();
        mallard.performFly();

        Duck model = new ModelDuck();
        model.performFly();
        model.setFlyBehavior(new FlyRocketPowered());
        model.performFly(); 
    }
}
